
<script language="javascript">

$(function(){
				   
    $('form').jqTransform({imgPath:'../images/ds_blue/'});
		   
	$('#formLogin').ajaxForm({
		dataType: 'json',
		beforeSubmit: function() {
			if( $("#txtIdPessoa").val() == "" || $("#txtIdEscola").val() == "" || $("#txtUser").val() == ""){
				alert("Preencha os dados corretamente!!")
				return false;
			}
		},
		success: function(responseText, statusText) {
			if(responseText.sucesso){
				alert(responseText.mensagem);
				document.formLogin.reset();
				window.location = "/?pg=cad_pessoa";
			}else{
				alert(responseText.mensagem);
			}
		}

	})
})	

</script>


<style>
.small{
	height:20px;
	clear:left; 
	margin-left:280px; 
	font-size:10px; 
	font-family: Tahoma, Geneva, sans-serif;
	text-decoration:none;
	color:#AAE3FF;
	}
.small a:link{
	color:#AAE3FF;
}
.small a:visited{
	color:#AAE3FF;
}
.small a:hover{
	color:#889DD4;
	font-size:11px;
}
</style>
	
</head>
<body>

<div id="dlogin">
<form action="actions/loginActionIluno.php" method="post" style="background:url(../images/PanelBasBag.png) no-repeat; width:614px; height:363px;" id="loginFormIluno" name="loginFormIluno">
	    
        <div style="position:relative;top:80px;left:240px;">    
        <table width="301" border="0" cellspacing="0">
          <tr>
            <td width="90" height="45"><label>ID Pessoa :</label></td>
            <td width="195">
						<input type="text" id="txtIdPessoa" name="txtIdPessoa"/>
            </td>
          </tr>
          <tr>
            <td height="45"><label>ID Escola :</label></td>
            <td>
						<input type="text" id="txtIdEscola" name="txtIdEscola"/>
            </td>
          </tr>
          <tr>
            <td height="45"><label for="login">Login:</label></td>
            <td><input type="text" id="txtUser" name="txtUser"/></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td></td>
          </tr>
          <tr>
            <td height="45"><label for="senha">Senha:</label></td>
            <td><input type="password" id="txtPass" name="txtPass"/></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2" align="center">
                <input type="submit" id="btnEntrar" value="<b>Entrar</b>" />
                &nbsp; 
                <input type="button" onClick="self.close();" value="<b>Sair</b>" />
            </td>
          </tr>
    </table>
     </div>
        				
	</form>
</div>

</body>
</html>